/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package System.model;

import org.json.JSONException;
import org.json.JSONObject;

/**
 *
 * @author GuloTosh
 */
public class ServiceValue {
    int id;
    int valueInt;
    String valueString;

    public ServiceValue( int valueInt, String valueString) {
        this.valueInt = valueInt;
        this.valueString = valueString;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getValueInt() {
        return valueInt;
    }

    public void setValueInt(int valueInt) {
        this.valueInt = valueInt;
    }

    public String getValueString() {
        return valueString;
    }

    public void setValueString(String valueString) {
        this.valueString = valueString;
    }

     public JSONObject toJson() throws JSONException{

        JSONObject json = new JSONObject();
        json.put("valueInt", this.getValueInt());
        json.put("valueString", this.getValueString());

        return json;

   }
    

}
